#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int main() {
    int n, score[100], chen;
    scanf("%d", &n);
    for (int i = 0; i < n; i++) {
        scanf("%d", &score[i]);
    }
    scanf("%d", &chen);
    int cout = 0;
    for (int j = 0; j < n; j++) {
        if (chen == score[j]) {
            cout++;
        }
    }
    printf("%d", cout);
    return 0;
}